package com.topnav.mc.admin.dao.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.topnav.mc.admin.entity.bean.UserBean;
import com.topnav.mc.admin.entity.bean.UserRoleBean;
import com.topnav.mc.admin.entity.param.UserParam;
import com.topnav.mc.admin.entity.param.UserRoleParam;
import com.topnav.mc.base.mc.McMapper;
import javafx.collections.MapChangeListener;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.topnav.mc.admin.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserRoleMapper extends McMapper<UserRole, UserRoleBean, UserRoleParam> {
    String commSql = " SELECT ur.* " +
            " FROM mc_user_role ur " +
            " ${ew.customSqlSegment}";

    @Select(commSql)
    UserRoleBean selectInfoOne(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    List<UserRoleBean> selectInfoList(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    @Select(commSql)
    Page<UserRoleBean> selectInfoPage(Page<UserRoleParam> page, @Param(Constants.WRAPPER) Wrapper queryWrapper);
}
